﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoodsSelect.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.BidProdManage.GoodsSelect" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>选择采购产品</title>
    <link rel="stylesheet" type="text/css" href="../../lib/style/global.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/scripts/build/fonts/fonts-min.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/scripts/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/scripts/build/resize/assets/skins/sam/resize.css" />

    <script type="text/javascript" src="../../lib/scripts/Common.js"></script>
    <script type="text/javascript" src="../../lib/scripts/global.js"></script>

    <script type="text/javascript" language="javascript">
        function addGoodsInfo(GoodsInfo) {
            opener.insertGoodsInfo(GoodsInfo);
            window.close();
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="listsearch">
        <table class="querylist">
            <tr>
                <td>
                    <asp:Label ID="lblGoodsName" runat="server" Text="产品名称："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Label ID="lblProduceCompany" runat="server" Text="生产企业："></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtProduceCompany_SC" runat="server"></asp:TextBox>
                </td>
                <td>
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
            </tr>
        </table>
    </div>
    <div class="listip">
        <ul>
            <li>小提示：<span>点击产品“产品名称”即可选择</span></li>
        </ul>
    </div>
    <br />
    <asp:GridView ID="gvwGoodsInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
         EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品名称">
                
                <ItemTemplate>
                <a href="javascript:addGoodsInfo('<%# Eval("GoodsID") %>|<%# Eval("GoodsName") %>|<%# Eval("CompanyName_SC") %>|<%# Eval("CompanyName_TB") %>')">
                        <%# Eval("GoodsName") %></a>
                    
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品名称">
                <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("GoodsName")%>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="SortName" HeaderText="分类" Visible="False" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName_TB" HeaderText="投标企业" />
        </Columns>
    </asp:GridView>
     <div class="page">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
    </webdiyer:AspNetPager>
    </div>
    <br />
    <div class="listctrl" style="text-align: left">
        &nbsp;
        <input id="Button1" type="button" onclick="openner=null;window.close();" value="取消选择" class="btn" /></div>
    </form>
</body>
</html>
